Hi all i have a problem in C# window application...........
Well i am making a application in which i am making treeview control, in which i have some nodes, and when i click on particular node, so related form is displaying in side panel............
But the problem is that,After debugging when my application is start so first node of that treeview looks automatically selected, and corresponding form is displaying in side panel, which i dont want, i want when i click on that node, then only corresponding form will be open in side panel....
In case of below nodes of treeview it is working fine, this problem only occurs in case of first node of treeview control................
Can anyone help me in this..............
xyz12
0
Newbie Poster
Recommended Answers
Jump to PostHello.
Interesting question ..
I couldn't find any property or method for this case, but here's some workaround. You can process the BeforeSelect event and cancel it if the selection made e.g. not using mouse:private void treeView1_BeforeSelect(object sender, TreeViewCancelEventArgs e) { if (e.Action != TreeViewAction.ByMouse) { …
Jump to PostHm .. hard to say ..
The selection appears as soon as your treeView get the focus. You can also play around TabIntex Property. If it's set to 0 (so your treView will be the first selected control on your form) then the node in it will be selected.
…
All 7 Replies
Antenka
274
Posting Whiz
xyz12
0
Newbie Poster
Antenka
274
Posting Whiz
xyz12
0
Newbie Poster
Antenka
274
Posting Whiz
avirag
10
Posting Whiz
sknake
1,622
Senior Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.